package com.article.mapper;

import com.article.entity.dto.SearchNoticeTypeDao;
import com.article.entity.pojo.NoticeType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NoticeTypeMapper extends BaseMapper<NoticeType> {
    List<NoticeType> getNoticeType(int pageStart, int pageEnd);

    int selectNoticeTypeNumber();

    List<NoticeType> searchNoticeType(SearchNoticeTypeDao searchNoticeTypeDao);

    int selectNoticeTypeNumber(SearchNoticeTypeDao searchNoticeTypeDao);

    int addNoticeType(NoticeType noticeType);

    int updateNoticeType(NoticeType noticeType);

    int updateNoticeTypeStatus(int id, Boolean status);

    NoticeType getNotice(String name, String type);
}
